package com.linchong.concurrency.chapter2;

/**
 * @Author:linchong
 * @CreateTime:2020-01-01 21:25
 * @Description:计算税率的具体规则
 */
public class SimpleCalculatorStategy implements CalculatorStrategy {


	private final static double SALARY_RATE = 0.1;
	private final static double BONUS_RATE = 0.1;

	@Override
	public double calculate(double salary, double bonus) {
		return salary * SALARY_RATE + bonus * BONUS_RATE;
	}
}
